package com.mumu.muPictureBackend;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
//MyBatisPlus指定Mapper的位置
@MapperScan("com.mumu.muPictureBackend.mapper")
//在哪里都可以创建代理对象调用自己的方法 可以实现事务回滚等增强
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableAsync
public class MuPictureBackendApplication {
    public static void main(String[] args) {
        SpringApplication.run(MuPictureBackendApplication.class, args);
    }

}
